
from rest_framework import serializers
from user.models import User


class PersonalSerializer(serializers.ModelSerializer):
    """用户中心"""
    class Meta:
        model = User
        exclude = ['fans']
        # fields = [
        #     'id',
        #     'username',
        #     'mobile',
        #     'realname',
        #     'birthday',
        #     'sex',
        #     'avatar',
        #     'website',
        #     'email',
        #     'city',
        #     'address',
        # ]
